//
//  BySearchBar.h
//  Homept_ios
//
//  Created by pro on 16/8/24.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <UIKit/UIKit.h>

// 搜索框
@interface BySearchBar : UIView <UISearchBarDelegate>

@property (nonatomic, strong) UISearchBar *searchBar;

@property (nonatomic, copy) NSString *searchImageName;      // 搜索框搜索图片自定义

@property (nonatomic, assign, getter=canEdit) BOOL *canEdit;

@property (nonatomic, copy) void (^ textDidChange)(NSString *searchText);
@property (nonatomic, copy) void (^ textDidSearch)(NSString *searchText);

@end
